package com.ms.common.exception;


import com.ms.common.utils.SpringContextHolder;

import java.io.Serializable;

public class NoticeException extends RuntimeException {

	private static final long serialVersionUID = 8465460581085124521L;
	private String message;
	
	public NoticeException(String message){
		this.message = message;
	}
	
	public NoticeException(String code, Object args[]){
		this.message = SpringContextHolder.getMessage(code, args);
	}
	
	public String getMessage() {
		return message;
	}
	
}
